#pragma once
#include "all.h"
class VideoProcessor
{

	VideoCapture cam;
	Mat current,previous;
	int rate,delay;

public:
	VideoProcessor(void);
	VideoProcessor(string);
	virtual ~VideoProcessor(void);
	vector<Point2f> process(void);
	void VideoProcessor::run(void);
	void VideoProcessor::drawOnImage(cv::Mat& , const std::vector<cv::Point2f>& , Scalar, int , int );
	Mat next(void);
	void wait(void);
	 
	void  detectCircle(cv::Mat&);
	void  colorDetect(int hsv_value,int tolleranza);
};

